package com.ruoyi.customers.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.customers.mapper.SysCustomersMapper;
import com.ruoyi.customers.domain.SysCustomers;
import com.ruoyi.customers.service.ISysCustomersService;

/**
 * 客户个人信息Service业务层处理
 * 
 * @author yhh
 * @date 2020-12-23
 */
@Service
public class SysCustomersServiceImpl implements ISysCustomersService 
{
    @Autowired
    private SysCustomersMapper sysCustomersMapper;

    /**
     * 查询客户个人信息
     * 
     * @param cusId 客户个人信息ID
     * @return 客户个人信息
     */
    @Override
    public SysCustomers selectSysCustomersById(Long cusId)
    {
        return sysCustomersMapper.selectSysCustomersById(cusId);
    }

    /**
     * 查询客户个人信息列表
     * 
     * @param sysCustomers 客户个人信息
     * @return 客户个人信息
     */
    @Override
    public List<SysCustomers> selectSysCustomersList(SysCustomers sysCustomers)
    {
        return sysCustomersMapper.selectSysCustomersList(sysCustomers);
    }

    /**
     * 新增客户个人信息
     * 
     * @param sysCustomers 客户个人信息
     * @return 结果
     */
    @Override
    public int insertSysCustomers(SysCustomers sysCustomers)
    {
        return sysCustomersMapper.insertSysCustomers(sysCustomers);
    }

    /**
     * 修改客户个人信息
     * 
     * @param sysCustomers 客户个人信息
     * @return 结果
     */
    @Override
    public int updateSysCustomers(SysCustomers sysCustomers)
    {
        return sysCustomersMapper.updateSysCustomers(sysCustomers);
    }

    /**
     * 批量删除客户个人信息
     * 
     * @param cusIds 需要删除的客户个人信息ID
     * @return 结果
     */
    @Override
    public int deleteSysCustomersByIds(Long[] cusIds)
    {
        return sysCustomersMapper.deleteSysCustomersByIds(cusIds);
    }

    /**
     * 删除客户个人信息信息
     * 
     * @param cusId 客户个人信息ID
     * @return 结果
     */
    @Override
    public int deleteSysCustomersById(Long cusId)
    {
        return sysCustomersMapper.deleteSysCustomersById(cusId);
    }
}
